package com.eedi.org.healthinfo.controller.vo;

import com.eedi.framework.common.enums.CommonStatusEnum;
import com.eedi.framework.common.validation.AddGroup;
import com.eedi.framework.common.validation.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


@Schema(description = "管理后台 - 健康资讯分类管理新增/修改 Request VO")
@Data
public class OrgHealthInfoGroupSaveReqVO {

    /**
     * 健康资讯分类ID
     */
    @Schema(description = "健康资讯分类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15410")
    @NotEmpty(message = "健康资讯分类ID不能为空" , groups = UpdateGroup.class)
    private String orgHealthInfoGroupId;

    /**
     * 健康资讯分类名称
     */
    @Schema(description = "健康资讯分类名称", example = "芋艿")
    @NotEmpty(message = "健康资讯分类名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String orgGroupName;

    /**
     * 显示顺序
     */
    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "显示顺序不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer orgSort;

    /**
     * 状态不能为空
     */
    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private CommonStatusEnum orgStatus;

}
